package com.kalvan.sensitive.annotation;

import com.kalvan.sensitive.enums.SensitiveType;

import java.lang.annotation.*;

/**
 * @author chenliang
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Desensitized {

    /* 脱敏类型(规则) */
    SensitiveType type();

    /* 判断注解是否生效的方法 */
    String isEffectiveMethod() default "";

}
